package example.jazztalk.common.model.query.impl;

import com.ibm.team.repository.common.internal.querypath.IQueryPath;
import com.ibm.team.repository.common.internal.querypath.StringField;
import com.ibm.team.repository.common.model.query.impl.SimpleItemQueryModelImpl;
import example.jazztalk.common.model.query.BaseMessageQueryModel.ManyMessageQueryModel;
import example.jazztalk.common.model.query.BaseMessageQueryModel.MessageQueryModel;
import java.util.List;
import java.util.Map;

/**
 * @generated
 */
public class MessageQueryModelImpl extends SimpleItemQueryModelImpl implements ManyMessageQueryModel, MessageQueryModel {

	/** @generated */
	private StringField text;

 	/**
     * @param anExtent the parent query element
     * @param aField the name of the parent's feature that this model represents
	 * @generated
	 */
	public MessageQueryModelImpl(IQueryPath anExtent, String aField) {
		super(anExtent,  aField);
		_implementation.setItemType("Message", "com.example.jazztalk"); //$NON-NLS-1$ //$NON-NLS-2$
	}

	/**
 	 * @generated
	 */
	public StringField text() {
		return text;
	}

	/**
	 * @generated
	 * @Override
	 */
	protected void initProperties(List allFieldNames, List allReferenceNames, Map allFields) {
		super.initProperties(allFieldNames, allReferenceNames, allFields);

		text = new StringField(_implementation, "text"); //$NON-NLS-1$
		allFieldNames.add("text"); //$NON-NLS-1$
		allFields.put("text", text); //$NON-NLS-1$
	}

}